GetLexicographicalComparer Generic Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates an IComparer instance that can be used for comparing ordered sequences of type T; that is IEnumerable<Tgt;. This comparer can be used for collections or algorithms that use sequences of T as an item type. The Lexicographical ordered of sequences is for comparison.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static IComparer<IEnumerable<T>> GetLexicographicalComparer<T>() where T : IComparable<T>
Visual Basic (Declaration)
Public Shared Function GetLexicographicalComparer(Of T As IComparable(Of T)) As IComparer(Of IEnumerable(Of T))
Visual C++
public:
generic<typename T>
where T : IComparable<T>
static IComparer<IEnumerable<T>^>^ GetLexicographicalComparer ()

Return Value

At IComparer<IEnumerable<T>> that compares sequences of T.

Type Parameters

T

Remarks

T must implement either IComparable<T> and this implementation is used to compare the items.

See Also